package day1026.dem1;

/**
 * @program: fanxing
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-10-26 19:17
 **/
public class Test {
    public static void main(String[] args) {
        Pig p=new Pig();
        p.show(25);
    }
}
/**
 * 这就定义好自定义注解
 */

@interface PeiQi{
}

@PeiQi
class Pig{
    @PeiQi
    private String name;

    @PeiQi
    public void show(@PeiQi int age){
        System.out.println("~~~~~~~~~~~~~~~~~~"+age);
    }
}

